package com.jacobson.huobi.di.modules

import com.jacobson.core.di.annotation.ActivityScope
import com.jacobson.huobi.mvp.contract.MeContract
import com.jacobson.huobi.mvp.model.MeModel
import com.jacobson.huobi.mvp.presenter.MePresenter
import dagger.Module
import dagger.Provides

@Module
class MeFragmentModule(
    private val view: MeContract.View
) {

    @Provides
    @ActivityScope
    fun provideView() = view

    @ActivityScope
    @Provides
    fun providePresenter(presenter: MePresenter): MeContract.Presenter = presenter

    @ActivityScope
    @Provides
    fun provideModel(model: MeModel): MeContract.Model = model
}